import request from '../utils/request';

export function fetch({ payload }) {
  return request(`/api/dsp/statistics/ad/plan/data?data=${payload}`);
  // return request(`/mock/593a71098ac26d795fc31e0b/laitui/adDataList?data=${payload}`);
};

export function fetchPacket({ payload }) {
  return request(`/api/dsp/ad/creative/group/list?data=${payload}`);
  // return request(`/mock/593a71098ac26d795fc31e0b/laitui/packetList?data=${payload}`);
}

export function fetchMaterial({ payload }) {
  return request(`/api/dsp/ad/creative/list?data=${payload}`);
  // return request(`/mock/593a71098ac26d795fc31e0b/laitui/materialList?data=${payload}`);
}
export function summaryList ({payload}) {
  return request(`/api/dsp/statistics/ad/plan/data/period?data=${payload}`);
}
